tools/check: We do need a default for ${PYTHON} as called from
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Jul 2009 14:33:05 +0000 (15:33 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Jul 2009 14:33:05 +0000 (15:33 +0100)
install.sh with PYTHON possibly undefined in the environment.

So we make PYTHON=python the sensible default.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/check/check_python
tools/check/check_python_devel
tools/check/check_python_xml

index ed7bc3652b1f23a67c928ec29331d848af421b1c..e9e0d04178f452eeb8074426c4cf8ee31ddd95ab 100755 (executable)
@@ -3,6 +3,10 @@
 
 . ./funcs.sh
 
+if test -z ${PYTHON}; then
+  PYTHON=python
+fi
+
 ${PYTHON} -c '
 import sys
 sys.exit(sys.version_info[0] < 2 or sys.version_info[1] < 2)
index c8e0d93b2f601f2ff8d2ac7dcf1296b02ca340ef..ee90e5da0011fb800e37c2979b0d63816f34612b 100755 (executable)
@@ -3,6 +3,9 @@
 
 . ./funcs.sh
 
+if test -z ${PYTHON}; then
+  PYTHON=python
+fi
 has_or_fail ${PYTHON}
 
 ${PYTHON} -c '
index 1932cb85b69fcdf969b42cb0d07b20c8b9dafa74..5b14971f0f8d7dad0fb117fe11bb4982bcee0311 100755 (executable)
@@ -3,6 +3,9 @@
 
 . ./funcs.sh
 
+if test -z ${PYTHON}; then
+  PYTHON=python
+fi
 has_or_fail ${PYTHON}
 
 ${PYTHON} -c 'import xml.dom.minidom' 2>/dev/null || \